{{if $w3cDoctype == $smarty.const.DOCTYPE_STRICT}}<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">{{elseif $w3cDoctype == $smarty.const.DOCTYPE_LOOSE}}<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">{{/if}}
{{config_load file='tidus.conf'}}
<html>
  <head>
    {{include file='base.inc.tpl'}}
  </head>

<body>
{{*/* Menu Bar */*}}
<script src="jsrequest.php?script=update" type="text/javascript"></script>
<script type="text/javascript">
  <!--
    if (document.addEventListener) {
      document.addEventListener('DOMContentLoaded', init, false);
    }
    window.onload = init;

    function init() {
      if (!document.getElementById || !document.createElement || !arguments || arguments.callee._loaded) {
        return;
      }
      arguments.callee._loaded = true;

      var xmlHttp = new Ajax(completeSaveMainMenu, { method: 'POST', context: this, params: { loadFunc: this._getUserData } });
      xmlHttp._request('{{$smarty.const.SERVICE|escape:'javascript'}}?action=saveMenus', 'm=' + JSON.stringify(PageBase.getMenus()));
    }

    function completeSaveMainMenu(xml, params) {
      alert('updated');
    }
  //-->
</script>

<h1 class="main">Updating...</h1>
</body>
</html>